from flask import Flask
from config import Config
app = Flask(__name__)
#跨域配制
from flask_cors import CORS
CORS(app)
#加载配制文件
app.config.from_object(Config)
#注册分类蓝图
from cate import bp_cate
app.register_blueprint(bp_cate)
#注册商品蓝图
from good import bp_goods
app.register_blueprint(bp_goods)

if __name__ == "__main__":
    app.run()